deleteGame

  • function
 

Delete a game from the database.

viewmodel.deleteGame(game, confirmMessage)

Delete a game from the database.

Parameters

  1. game {Game}

    The Game to delete.

  2. confirmMessage {String}

    The message presented to the user in a confirm() dialog.

Use in a template like:

<span class="destroy-btn" ($click)="deleteGame(., "Are you sure?")"></span>